package com.usian.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;

import java.nio.channels.Channel;
import java.util.List;

@Api(value = "频道管理",tags = "channel",description ="频道管理api" )
public interface AdchannelService extends IService<AdChannel> {

    @ApiOperation(value = "频道查询",notes = "分页查询")
    public ResponseResult findBynameandpage(ChannelDto channelDto);
    @ApiOperation(value = "频道添加",notes = "添加")
    public ResponseResult add(AdChannel adChannel);

    @ApiOperation(value = "频道删除",notes = "删除")
    public ResponseResult del(Integer id);

    @ApiOperation(value = "频道修改",notes = "修改")
    public ResponseResult edit(AdChannel adChannel);

    ResponseResult findAll();
}
